package com.chang.cheng.toutiaoserver.login.controller.v1_1;

import com.chang.cheng.toutiaoserver.login.controller.apis.FindArticlesApi;
import com.chang.cheng.toutiaoserver.login.serviceV1_1.ApUserFindArticlesService;
import com.chang.cheng.toutiaoserver.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther: asus
 * @Date: 2022/01/07 09:47
 * @Description:
 */
@RestController
@RequestMapping("app/v1_1")
public class FindArticlesV1_1Controller implements FindArticlesApi {
    @Autowired
    private ApUserFindArticlesService apUserFindArticlesService;

    @Override
    @GetMapping("/articles")
    public ResponseResult findArticles(@RequestParam Long channel_id, @RequestParam Long timestamp){
        return apUserFindArticlesService.findArticles(channel_id,timestamp);
    }
}
